package com.sy.demo;

import org.springframework.stereotype.Component;

@Component
public class LogService {

	public LogService() {
		System.out.println("LogService ...");
	}

	public String sayHello(String name) {
		String result = "hello" + name;
		System.out.println(result);
		int length = name.length();
		return result + "-----" + length;
	}
}
